//
//  Shape.m
//  Coffee
//
//  Created by sabhanayagam b on 5/28/11.
//  Copyright 2011 Cognizant. All rights reserved.
//

#import "Shape.h"


@implementation Shape

@synthesize count;
@synthesize vertices;
@synthesize polygon;

- (id) initWithVerticesLength:(int)_count {
    self = [super init];
    if (self != nil) {
        count = _count;
        vertices = malloc(sizeof(CGPoint)*count);
	}
    return self;
}


- (void) dealloc
{
    free(vertices);
	[Polygon release];
    [super dealloc];
}


@end
